/**
 * 浏览器内核判断
 * @type {string}
 */
const ua = window.navigator.userAgent.toLocaleLowerCase();// 当前浏览器
const origin = location.origin;
const isIos = /iphone|ipod|ipad/.test(ua);
const isWx = ua.indexOf('micromessenger') !== -1;
const isAndroid = /android/.test(ua);
const isDev = (process.env.NODE_ENV == 'development');
const isTest = (origin.indexOf("sce-test.pingan") !== -1);
const isPrd = (origin.indexOf("sce.pingan") !== -1);

export {
  isIos,
  isWx,
  isAndroid,
  isDev,
  isDmz,
  isTest,
  isPrd
};